package daoImpl;

import java.util.ArrayList;
import java.util.List;

import model.Coach;
import dao.CoachDao;


public class CoachDaoImpl implements CoachDao{
	
	public List<Coach>	coaches	= new ArrayList<Coach>();
	
	
	public void add( Coach coach ) {
		coaches.add( coach );
	}
	
	
	public void delete( Coach coach ) {
		coaches.remove( coach );
	}
	
	
	public List<Coach> getCoaches() {
		return coaches;
	}
	
	
	public void update( Coach coach ) {
	}


	@Override
	public void setMemento( List<Coach> coaches ) {
		this.coaches = coaches;
	}
}
